import request from '@/utils/request';
import {base_url,headers} from '@/api/common/fengwenxin_setting'
// import common from '@/assets/js/common.js'
// import { getToken } from '@/utils/auth'
// let Base64 = require('js-base64').Base64;
export const findRelativeUserList = data => {//用户相对方列表
    return request({
        url: base_url + "/system/relative/relativeUserList",
        method:'post',
        // headers,
        data
    });
};
export const addRelativeUser = data => {//新增用户相对方
    return request({
        url: base_url + "/system/relative/addRelativeUser",
        method:'post',
        data
    });
};


export const updateRelativeUser = data => {//更新组织相对方
    return request({
        url: base_url + "/system/relative/updateRelativeUser",
        method:'post',
        data
    });
};


export const generateAccount = params => {//组织相对方生成账号
    return request({
        url: base_url + "/system/relative/generateAccount",
        method:'get',
        params
    });
};



export const delRelativeUser = data => {//删除组织相对方
    return request({
        url: base_url + "/system/relative/delRelativeUser",
        method:'post',
        data
    });
};
